package com.commons.tools.hignconcurrency;


import com.commons.tools.util.ThreadPoolUtils;

import java.util.concurrent.CyclicBarrier;

/**
 * 高并发：
 * 1.分工：线程池，多线程
 * 2.同步：CountDownLatch、Semaphore与CyclicBarrier
 * 3.互斥：syncronize
 */
public class CyclicBarrierTest {
    CyclicBarrier cyclicBarrier = new CyclicBarrier(5);


    public static void main(String[] args) {
        ThreadPoolUtils.execute(()->{

        });

    }
}
